import axios from 'axios';
import {ALL_SERVICE_API} from '../api';

export const createMessageTemplateParam = (params) => {
  return axios.post(ALL_SERVICE_API + '/message-template-params', params);
};

export const updateMessageTemplateParam = (params) => {
  return axios.put(ALL_SERVICE_API + '/message-template-params', params);
};

export const getAllMessageTemplateParams = (params) => {
  return axios.get(ALL_SERVICE_API + '/message-template-params', {params: params});
};

export const getMessageTemplateParam = (id) => {
  return axios.get(ALL_SERVICE_API + '/message-template-params/' + id);
};

export const deleteMessageTemplateParam = (id) => {
  return axios.delete(ALL_SERVICE_API + '/message-template-params/' + id);
};
